import request from '@/utils/request'

export function access_token(type) {
  return request({
    url: '/openapi/access_token?type='+type,
    method: 'get',
  })
}

export function refresh_token(type) {
  return request({
    url: '/openapi/refresh_token?type='+type,
    method: 'get',
  })
}


export function advertiser_get() {
  return request({
    url: '/openapi/advertiser_get',
    method: 'get',
  })
}

export function log_search(advertiserId) {
  return request({
    url: '/openapi/log_search?advertiserId='+advertiserId,
    method: 'get',
  })
}

export function advertiser_select() {
  return request({
    url: '/openapi/advertiser_select',
    method: 'get',
  })
}
export function reportAgent() {
  return request({
    url: '/openapi/reportAgent',
    method: 'get',
  })
}

export function addAccount() {
  return request({
    url: '/openapi/addAccount',
    method: 'get',
  })
}
